package cn.goktech.service.imp;

import cn.goktech.bean.Admin;
import cn.goktech.mapper.AdminMapper;
import cn.goktech.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminServiceImp implements AdminService {
    //此时在这里添加注解@Autowired，会自动将dao的动态代理对象mapper自动注入
    @Autowired
    private AdminMapper adminMapper;

    public int deleteByPrimaryKey(Integer id) {
        return adminMapper.deleteByPrimaryKey(id);
    }

    public int insert(Admin record) {
        return 0;
    }

    public Admin selectByPrimaryKey(Integer id) {
        return null;
    }

    public List<Admin> selectAll() {
        return adminMapper.selectAll();
    }

    public int updateByPrimaryKey(Admin record) {
        return 0;
    }
}
